package com.hhkj.admin.sale.mapper;

import com.hhkj.admin.sale.domain.SaleWithdrawal;
import com.hhkj.admin.sale.model.dopo.SaleWithdrawalDo;
import com.hhkj.admin.sale.model.dopo.SaleWithdrawalPo;
import com.ruoyi.common.base.biz.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

/**
 * @author admin
 */
public interface SaleWithdrawalMapper
        extends BaseMapper<SaleWithdrawal, SaleWithdrawalDo, SaleWithdrawalPo> {

    /**
     * 统计销售累计提现金额
     *
     * @param saleId 销售id
     * @return 销售累计提现金额信息
     */
    BigDecimal countAccumulatePriceBySaleId(@Param("saleId") Long saleId);

    /**
     * 根据条件统计提现次数
     *
     * @param conditionDo 条件信息
     */
    Integer countAmountByDo(@Param("conditionDo") SaleWithdrawalDo conditionDo);

}




